import {Module} from "vuex";

const user: Module<any, any> = {
    state: {
        name: "",
        age: "",
    },
    mutations: {
        setName(state, name) {
            state.name = name;
        },
    },
    actions: {
        setName({commit}, name) {
            commit("setName", name);
        },
    },
};

export default user;
